<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>订单提交成功!</title>
	<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Application/Index/View/css/pay.css" />
	<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Application/Index/View/css/style2.css" />
	<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Application/Index/View/css/commonjs.css" />
	<script src="http://127.0.0.1/vancl_php/Static/js/jquery-1.7.2.min.js"></script>
	<script src="http://127.0.0.1/vancl_php/Static/js/common.js"></script>
</head>
<body>
	<!-- 头部开始  -->
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<title>用户个人中心-主页</title>
		<script>
			var showCart = "<?php echo U('Cart/ajaxGoods');?>";
			var app = "<?php echo U('Details/index');?>";
			var delCart = "<?php echo U('Cart/delCart');?>";
			var root = "http://127.0.0.1/vancl_php/";
			var getgoods = "<?php echo U('Index/getGoodsName');?>";
			var search = "<?php echo U('Search/index');?>";
			var showlist = "<?php echo U('List/index');?>";
		</script>
		
		<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Application/Index/View/css/style2.css" />
		<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Application/Index/View/css/commonjs.css" />
		<script type="text/javascript" src="http://127.0.0.1/vancl_php/Static/js/jquery-1.8.2.min.js"></script>
		<script src="http://127.0.0.1/vancl_php/Static/js/common.js"></script>
		<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Static/css/hdjs.css" />
		<script src="http://127.0.0.1/vancl_php/Static/js/hdjs.min.js"></script>
		<script src="http://127.0.0.1/vancl_php/Application/Index/View/js/showCart.js"></script>
		<style>
			.nothot{
				color:#727171 !important;
			}
			.hot{
				color:#B81B22 !important;
			}
		</style>
	</head>
<body>
		<!-- 头部开始  -->
		<div id="header">
			<!-- 头部广告位置 -->
			<div class="adWrap">
				<!--<div class="headAd">
					<a href="">
						<img src="http://127.0.0.1/vancl_php/Application/Index/View/Img/head_top_ad.jpg" alt="头部广告位" />
					</a>
				</div>-->
				<!-- 头部广告位置结束 -->
			</div>
			<!--头部登陆信息开始-->
			<div class="toptopare">
				<div class="arewarp">
					<!--左边欢迎登陆文字开始-->
					<div class="welcome">
						
						<span class="loginreg">
								    <?php if(!isset($hd['session']['username'])){ ?>
								您好,欢迎光临凡客诚品！
								<a href="<?php echo U('Login/index');?>">登陆</a>

								｜ 

								<a href="<?php echo U('Register/index');?>">注册</a>
								<?php }else{ ?>
									 您好！
							 		<a href="<?php echo U('UserInfo/index');?>" style="color:#B81B22;font-weight: 700;"><?php echo $hd['session']['username'];?></a>
							 		<a href="<?php echo U('Login/loginout');?>" style="color:#B81B22;">退出登录</a>
								<?php } ?>
							</span>
					</div>
					<!--左边欢迎登陆文字结束-->
					<!--订单收藏-->
					<div class="orderads">
						<a href="<?php echo U('UserInfo/orderList');?>">我的订单</a>

						<a href="">收藏本站</a>
					</div>
					<!--订单收藏结束-->
					<!-- 右边下拉列表-->
					<div class="droplist">
						<div href="" id="myVancl" class="mylist">
							<a href="<?php echo U('UserInfo/Index');?>">我的凡客 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="<?php echo U('UserInfo/orderList');?>">我的订单</a></li>
								<li><a href="<?php echo U('UserInfo/balance');?>">帐户余额</a></li>
								<li><a href="<?php echo U('UserInfo/takeAddr');?>">收货地址</a></li>
								<li><a href="<?php echo U('UserInfo/changePwd');?>">修改密码</a></li>
								<li><a href="<?php echo U('UserInfo/myData');?>">我的资料</a></li>
								
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">网站导航 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="<?php echo U('UserInfo/orderList');?>">我的订单</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">帮助中心 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">购物指南</a></li>
								<li><a href="">配送方式</a></li>
								<li><a href="">支付方式</a></li>
								<li><a href="">售后服务</a></li>
								<li><a href="">投诉建议</a></li>
								<li><a href="">在线客户</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
						<div href="" class="mylist">
							<a href="">网站公告 <span class="jt"></span></a>
							<ul class="myVanclList">
								<li><a href="">我的订单</a></li>
								<li class="liBottom"><a href=""></a></li>
							</ul>
						</div>
					</div>
					<!--右边下拉列表结束-->
				</div>
			</div>
			<!--头部登陆信息结束-->
			<!--logo和搜索条-->
			<div class="logoArea">
				<!--logo-->
				<a href="<?php echo U('Index/index');?>" class="logo"></a>
				<!--logo结束-->
				<!--搜索区开始-->
				<!--搜索区开始-->
				<div class="serachArea">
					<div class="searchTopAre">
					<!--搜索框-->
					<div class="searchInput">
						<form action="<?php echo U('Search/index');?>" method="get">
							<input type="text" name="searchkey" autocomplete="off" id="inputBox"/>
							<div class="inputbox" >
							</div>
							<input type="submit" id="searchBtn" value="搜索" />
						</form>
					</div>
					<!--购物车-->
					<div class="shopCart">
						<a href="<?php echo U('Cart/index');?>" style="color:white">购物车</a>(<span class="carNum">    <?php if(isset($hd['session']['cart']['total_rows'])){ ?><?php echo $hd['session']['cart']['total_rows'];?><?php }else{ ?>0<?php } ?></span>)
						<div class="showCartList">
							<!--目前没有商品-->
							<p class="cartTitle">最近加入购物车</p>
							<ul>
								
							</ul>
							<!--购物车底部-->
							<div class="cartBottom">
								<div class="left">
									共计
									<p>￥0.00元</p>
								</div>
								<!--右边进入详细购物车页-->
								<div class="right">
									<a href="<?php echo U('Cart/index');?>">查看购物车</a>
								</div>
							</div>
						</div>
					</div>
					<!--购物车结束-->
					</div>
					<!--热门搜索-->
					<div class="hotKeyword">
						<!--<span>热门搜索:</span>
						<a href="">吉武国</a>
						<a href="">T恤</a>
						<a href="">卡其裤</a>
						<a href="">长场雄</a>
						<a href="">POLO</a>
						<a href="">麻牛仔</a>
						<a href="">皮肤衣</a>
						<a href="">牛津纺</a>-->
					</div>
					<!--热门搜索结束-->
					
					<!--搜索框结束-->
				</div>
				<!--搜索区结束-->
			</div>
			<!--logo和搜索条结束-->
			<!--导航区-->
			<div id="navbar" style="position:relative;">
				<div class="navFirst">
					全部商品分类
					
					<!--下拉菜单 -->
					<div class="dropLists">
					
						<?php foreach ($rightCateTree as $key=>$val){?>
						<dl>
							<span><?php echo $val['cname'];?></span>
							<?php foreach ($val['son'] as $k=>$v){?>	
							    <?php if($k==0){ ?>
								<dd>
							<?php }else{ ?>
								<dd class="otherCate">
							<?php } ?>
								<p>
									<a href="<?php echo U('List/index',array('cid'=>$v['cid']));?>"><?php echo $v['cname'];?></a>
								</p>
								
								<p class="sonCate">
									<?php foreach ($v['son'] as $ky=>$vl){?>
										<a href="<?php echo U('List/index',array('cid'=>$vl['cid']));?>"     <?php if($vl['is_hot']==1){ ?>class="hot"<?php }else{ ?>class="nothot"<?php } ?> ><?php echo $vl['cname'];?></a>
									<?php }?>
								</p>
														
							</dd>
							<?php }?>
							</dl>
    					<?php }?>
    					
					</div>
					<!--下拉菜单 -->
					<span class="downArrowTop"></span>
				</div>
				<div class="navList" >
					<ul>
						<?php foreach ($topCate as $key=>$val){?>
						<li><a href="" title=<?php echo $val['ckeywords'];?>><?php echo $val['cname'];?></a>
							<!--当前这个分类下页推荐的2个商品-->
							<div class="cateProduct2">
								<!--分页推荐商品左边-->
								<?php foreach ($val['son'][0] as $kk=>$vv){?>
								<div class="productLeft"     <?php if($kk==1){ ?>style="border:none;"<?php } ?>>
									<div class="wrapProduct">
										<a href="http://127.0.0.1/vancl_php/index.php/Index/Details/index/gid/<?php echo $vv['gid'];?>">
											<img src="http://127.0.0.1/vancl_php/<?php echo $vv['goods_listimg'];?>" alt="" width="140" height="140" />
										</a>
										<p class="goods">
											<a href="http://127.0.0.1/vancl_php/index.php/Index/Details/index/gid/<?php echo $vv['gid'];?>"><?php echo hd_substr($vv['goods_name'],8,'');?></a>
										</p>
										<div class="goodsDesc">
											
											<p class="goodsPrice" style="margin-top:50px;margin-left:20px;">
											￥<?php echo $vv['shop_price'];?>
											</p>
										</div>
										
									</div>
								</div>
								<?php }?>
								
							</div>
						</li>
						<?php }?>
					</ul>
				</div>
			</div>
			<!--导航区结束-->
		</div>
		<!-- 头部结束  -->
		<!--提交主体-->
		<div id="okorder">
			<div class="center">
				<h1>
					订单已提交成功，请您尽快完成付款
				</h1>
				<table>
					<tr>
						<th>订单号 </th>
						<th>需支付金额 </th>
						<th>支付方式 </th>
						<th>发货库房 </th>
						<th>预计配送时间 </th>
					</tr>
					<tr>
						<td><?php echo $orderdata['order_sn'];?></td>
						<td>￥<?php echo $orderdata['orderprice'];?></td>
						<td>在线支付  </td>
						<td>本部 </td>
						<td>发货后4天 </td>
					</tr>
				</table>
				
			</div>
			<!--付款方式-->
				<div class="paymethod">
					<strong class="payfont">请选择支付方式完成付款</strong>
					<!--支付图片-->
					<div class="payimg">
						<div class="list">
							<ul>
								<li>常用支付方式</li>
							</ul>
						</div>
						<div class="payImgs">
							<form action="<?php echo U('Cart/pay');?>" method="post" id="pay">
								<div class="form-group">
									<input type="radio" name="paymethod" id="zfb" value="1" checked="checked" />
									<input type="hidden" name="sn" value="<?php echo $orderdata['order_sn'];?>" />
									<label for="zfb"><img src="http://127.0.0.1/vancl_php/Application/Index/View/Img/zfbico.png" alt="" /></label>
									
								</div>
								<div class="form-group2">
									<span> 您共需要为订单支付：</span>
									<span class="money">￥<?php echo $orderdata['orderprice'];?></span>
									<input type="submit" value="支付款" class="submit" />
								</div>
							</form>
						</div>
					</div>
					<script type="text/javascript">
						$('#pay').submit(function(){
							if(!$(':checked')){
								alert('请选择一种支付方式');
							}
						})
					</script>
				</div>
		</div>
		
		
		<!--提交主体-->
		
		
		<!-- 页脚开始 -->
		<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!-- 页脚开始 -->
		<div id="foot">
			<div class="footerList">
				<div class="center">
					<dl>
						<dt><a href="">关于凡客</a></dt>
						<dd><a href="">公司简介</a>
						</dd>
						<dd><a href="">联系我们</a>
						</dd>
						<dd><a href="">友情链接</a>
						</dd>

					</dl>
					<dl>
						<dt><a href="">新手指南</a></dt>
						<dd><a href="">账户注册</a>
						</dd>
						<dd><a href="">购物流程</a>
						</dd>
						<dd><a href="">网站地图</a>
						</dd>
						<dd><a href="">商家入驻</a>
						</dd>
					</dl>
					<dl>
						<dt><a href="">配送范围及时间</a></dt>
						<dd><a href="">国内配送</a>
						</dd>
						<dd><a href="">订单拆分</a>
						</dd>

					</dl>
					<dl>
						<dt><a href="">支付方式</a></dt>
						<dd><a href="">货到付款</a>
						</dd>
						<dd><a href="">在线支付</a>
						</dd>
						<dd><a href="">礼品卡及账户余额</a>
						</dd>
						<dd><a href="">其他支付方式</a>
						</dd>

					</dl>
					<dl>
						<dt><a href="">售后服务</a></dt>
						<dd><a href="">退换货政策</a>
						</dd>
						<dd><a href="">退换货办理流程</a>
						</dd>
						<dd><a href="">退换货网上办理</a>
						</dd>
						<dd><a href="">退款说明</a>
						</dd>
						<dd><a href="">调查问卷</a>
						</dd>

					</dl>
					<dl style="border:none;">
						<dt><a href="">帮助中心</a></dt>
						<dd><a href="">在线客服</a>
						</dd>
						<dd><a href="">找回密码</a>
						</dd>
						<dd><a href="">隐私声明</a>
						</dd>

					</dl>
				</div>
			</div>
			<!--条款图片-->
			<div class="footerListImg">
				<div class="wrapImg">
					<a href="" class="img1"></a>
				</div>
				<div class="wrapImg">
					<a href="" class="img2"></a>
				</div>
				<div class="wrapImg">
					<a href="" class="img3"></a>
				</div>
				<div class="wrapImg">
					<a href="" class="img4"></a>
				</div>

			</div>
			<!--条款图片结束-->
			<!--版权信息和工商-->
			<div class="footerBotoom">
				<div class="copy">
					Copyright 2007 - 2014 vancl.com All Rights Reserved 京ICP证100557号 京公网安备11011502002400号 出版物经营许可证新出发京批字第直110138号
				</div>
				<div class="gsImg">
					<div class="wrapFootImg">
						<a href="" class="gsImg1"></a>
						<a href="" class="gsImg2"></a>
						<a href="" class="gsImg3"></a>
						<a href="" class="gsImg4"></a>
						<a href="" class="gsImg5"></a>
					</div>
				</div>

			</div>
			<!--版权信息和工商-->

		</div>
		<!-- 页脚结束 -->
	</body>

</html>
		<!-- 页脚结束 -->
</body>
</html>
